//
//  TVProductCell.m
//  TWSXPhone
//
//  Created by creator on 14-3-27.
//  Copyright (c) 2014年 科创信息. All rights reserved.
//

#import "TouristCell.h"

@implementation TouristCell


- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];
    
}

-(void)loadCell{
    
    self.title.frame = CGRectMake(5, 5, SCREEN_WIDTH-80 , 50);

    self.myimageView.frame = CGRectMake(SCREEN_WIDTH-65, 5, 50, 50);
    
}


- (UILabel *)title{
    if (!_title) {
        _title = [[UILabel alloc] init];
        _title.textColor = [UIColor blackColor];
        _title.backgroundColor = [UIColor clearColor];
        _title.numberOfLines = 3;
        _title.font = [UIFont fontWithName:@"TrebuchetMS-Bold" size:14];
        [self addSubview:_title];
    }
    return _title;
}

-(UIImageView*)myimageView{
    
    if (!_myimageView) {
        _myimageView = [[UIImageView alloc] init];
        _myimageView.layer.masksToBounds = YES;  
        _myimageView.layer.cornerRadius = 8.0;
        [self addSubview:_myimageView];

    }
    
    return _myimageView;
}


@end
